I need to create a matrix that dumps to excel. I need to print all attributes from one module and pull in attributes from another module that each object links to. I've looked at several sample scripts but can't seem to get what I need. I just upgraded to 9.3.0.1 and it looks like some dxl has changed (I haven't done dxl for a little while) but simple things like printing out current module name comes up empty or doing a requirements count says 0 but I get no dxl errors. Any help would be appreciated.
|
Re: Creating Trace matrix from multiple modules If you have code that isn't working you will need to post it.
|
Re: Creating Trace matrix from multiple modules llandale - Wed Mar 16 09:42:04 EDT 2011
|
Re: Creating Trace matrix from multiple modules SR-ITC - Thu Mar 17 11:00:47 EDT 2011
You need to be more specific. If you have two modules A and B, and the objects of A link to the objects of B then you use the Analysis Wizard to display attributes values from the objects of B in module A or vice versa. The Analysis Wizard (Menu: Analysis / Wizard, which has a pretty good documentation in the help file by the way, which you can access using the "help" button) creates DXL Layout Columns, which are sufficient for exporting, however if you need attributes for scripts, etc. you can convert the Layout DXL to attribute DXL (Menu: Tools / Support Tools).
print (fullName current Module) "\n"
int cnt = 0; Object o; for o in (current Module) do { if (o."Requirement" "" != "") cnt++ }
print "Requirements: " cnt "\n"
Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS
|